//
//  HMSignUpStrongCourseModel.m
//  BestLearning
//
//  Created by 陈辉明 on 2017/11/25.
//  Copyright © 2017年 apple. All rights reserved.
//

#import "HMSignUpStrongCourseModel.h"

@implementation HMSignUpStrongCourseModel

- (instancetype)initWithDict : (NSDictionary*)dict{
    if (self = [super init]) {
        [self setValuesForKeysWithDictionary:dict];
    }
    return self;
}
+ (instancetype)HMSignUpStrongCourseModelWithDict : (NSDictionary*)dict{
    return [[self alloc]initWithDict:dict];
}

-(void)setValue:(id)value forKey:(NSString *)key {
    if ([key isEqualToString:@"setCourseComments"]) {
        for (NSDictionary *dict in value) {
            HMSignUpStrongCourseTwoModel *model = [HMSignUpStrongCourseTwoModel HMSignUpStrongCourseTwoModelWithDict:dict];
            [self.setCourseComments addObject:model];
        }
       
    }
    
    else if ([key isEqualToString:@"id"]) {
        self.Id = value;
    } else{
        [super setValue:value forKey:key];
    }
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}

-(NSMutableArray *)setCourseComments {
    if (!_setCourseComments) {
        _setCourseComments = [NSMutableArray new];
    }
    return _setCourseComments;
}

@end

@implementation HMSignUpStrongCourseTwoModel

- (instancetype)initWithDict : (NSDictionary*)dict{
    if (self = [super init]) {
        [self setValuesForKeysWithDictionary:dict];
    }
    return self;
}
+ (instancetype)HMSignUpStrongCourseTwoModelWithDict : (NSDictionary*)dict{
    return [[self alloc]initWithDict:dict];
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}

@end
